<?php


namespace app\store\model\dealer;

use app\common\model\dealer\RecordLog as RecordLogModel;
class RecordLog extends RecordLogModel
{
    /**
     * 查看级差记录明细
     * @param $record_id
     * @return \think\Paginator
     * @throws \think\exception\DbException
     */
    public function getList($record_id){
        $list = $this->with(['user'])->where(['record_id'=>$record_id])
            ->paginate(15, false, [
                'query' => \request()->request()
            ]);
        return $list;
//        var_dump(($list->toArray()));exit();
    }
}